{include file="public/layout"/}
<body data-type="generalComponents">
<div class="tpl-content-wrapper js-check-wrap">
    <ol class="am-breadcrumb">
        <li><a href="javascript:void(0)" onclick="javascript:parent.openItem('welcome|Index');" class="am-icon-home">首页</a></li>
        <li class="am-active">数据</li>
        <li class="am-active">数据表优化</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="tpl-block">
            <form class="js-ajax-form" method="post">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form class="am-form">
                            <table class="am-table am-table-striped am-table-hover table-main">
                                <thead>
                                <tr>
                                    <th class="table-id">数据表</th>
                                    <th class="table-title">记录条数</th>
                                    <th class="table-type">占用空间</th>
                                    <th class="table-author am-hide-sm-only">编码</th>
                                    <th class="table-date am-hide-sm-only">创建时间</th>
                                    <th class="table-set">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="vo"}
                                <tr>
                                    <td>{$vo.Name}</td>
                                    <td>{$vo.Rows}</td>
                                    <td>{$vo.Data_length|format_bytes}</td>
                                    <td class="am-hide-sm-only">{$vo.Collation}</td>
                                    <td class="am-hide-sm-only">{$vo.Create_time}</td>
                                    <td>
                                        <div class="am-btn-toolbar">
                                            <div class="am-btn-group am-btn-group-xs">
                                                <a class="am-btn am-btn-default am-btn-xs am-text-success" href="{:url('Tools/run_optimize',array('tablename'=>$vo['Name']))}"><i class="am-icon-magic"></i> 优化</a>
                                                <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="{:url('Tools/repair',array('tablename'=>$vo['Name']))}"><i class="am-icon-wrench"></i> 修复</a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>

                </div>
            </form>
        </div>
    </div>
</div>
<script src="__ADMIN__/js/admin.js"></script>
</body>
</html>